package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.qo.QueryObject;

import java.util.List;

public interface IMenuService {
    void deleteByPrimaryKey(Long id);

    void saveOrUpdate(Menu record);

    Menu selectByPrimaryKey(Long id);

    List<Menu> queryAllMenu();
    //分页
    PageResult queryForList(QueryObject qo);

    List<Menu> getMenusByParentId(Long id);

    List<Menu> getMenusNoSon();
}
